package Midtest;

public class PlaneAdapter implements Plane {
    public Plane plane=new PlaneImpl();

    public PlaneAdapter(Plane plane) {
        this.plane = plane;
    }

    @Override
    public void takeOff() {
        System.out.println("XX飞机即将起飞");
        plane.takeOff();
    }
}
